package com.cyys.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyys.entity.Store;
import com.cyys.mapper.StoreMapper;

import com.cyys.service.StoreService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @ClassName StoreServiceImpl
 * @Description: TODO
 * @Author 86152
 * @Date 2022/5/27
 * @Version V1.0
 **/
@Service
public class StoreServiceImpl extends ServiceImpl<StoreMapper, Store> implements StoreService {


    @Override
    public List<Store> selectStoreByName(String name) {
        QueryWrapper qw = new QueryWrapper();
        qw.like("name", name);
        return this.baseMapper.selectList(qw);
    }

    @Override
    public List<Store> selectPages() {
        return this.baseMapper.selectPages();
    }

}
